package com.csxy.systemmanager.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.csxy.systemmanager.entity.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderDao extends BaseMapper<Order> {
    IPage<Order> queryByPage(Page<Order> page, @Param("order")Order order);

//    List<Order> selectAllOrderList();//获取用户订单列表

    int insertOrders(@Param("order") Order order);//添加订单

    int updateOrdersById(@Param("order") Order order);//修改订单

    List<Order> searchOrdersByShopName(@Param("order") Order order);//根据订单名称查询订单
    int deleteOrdersById(@Param("orderId") Integer orderId);//删除订单
}
